<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page isELIgnored="false" %> 

<%@ page import="net.ssta.core.db.RecordSet"%>
<%@ page import="net.ssta.core.db.Record"%>
<%@ page import="net.ssta.core.db.PagingInfo"%>

<%
	String path = request.getContextPath();
	//分页参数
    PagingInfo pagingInfo =(PagingInfo) request.getAttribute("pagingInfo");
    
	RecordSet rs=(RecordSet)request.getAttribute("RECORDSET");
	if(rs==null){rs=new RecordSet();}
	
	 int pageno = pagingInfo.getCurrentPageNo();
	 Record  searRecord=(Record)request.getAttribute("searchData");
	 if(searRecord==null){
		 searRecord=new Record();
	 }
%>


 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<link type="text/css" rel="stylesheet" href="<%=path %>/includes/css/commonStyle.css"/> 
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/styleBase/css/styleBase.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/styleBase/css/ostable.css" />
<link rel="stylesheet" href="<%=path %>/includes/lhgdialog/lhgdialog.css" />


<script type='text/javascript' src="<%=path %>/includes/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/includes/styleBase/js/style.js"></script>
<script type="text/javascript" src="<%=path %>/includes/DatePicker/WdatePicker.js"></script>


<script type="text/javascript" src="<%=path %>/includes/lhgdialog/lhgcore.min.js"></script>
<script type="text/javascript" src="<%=path %>/includes/lhgdialog/lhgdialog.js"></script>



<title>注册用户管理</title>
 
<script type="text/javascript">
 
 
	//跳转
	function reloadPage() 
	{
		_goPage(<%=pageno%>);
	}
</script>

</head>
<body>
 
	<div class="titleDiv">
  <table width="100%" cellpadding="0" cellspacing="0" border="0" style="text-align:left;">
    <tr>
      <td class="box_top_left">&nbsp;</td>
      <td class="box_top_center">充值记录查询</td>
      <td class="box_top_right">&nbsp;</td>
    </tr>
  </table>
</div>

<form name="_sForm" action="<%=path %>/back/userPointManager?method=costRecordList&type=1" method="post">
	<div class="infoDiv">
	  <table border="0" cellpadding="0" cellspacing="0" class="trHeightTable">
	    <tr>
	      <td class="leftTipArea">用户名：</td>
	      <td><input  name="search_USERNAME" class="textInput" style="width:120px;" value="<%=searRecord.getString("USERNAME","") %>"/></td>
	    
	      <td width="10px">&nbsp;</td>
	      
		   <td class="leftTipArea">时间：</td>
	      <td>
	         <input  name="search_STARTDATE" class="textInput" style="width:100px;" value="<%=searRecord.getString("STARTDATE","") %>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
	      	 至
	      	 <input  name="search_ENDDATE" class="textInput" style="width:100px;" value="<%=searRecord.getString("ENDDATE","") %>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
	      </td>
	     <td width="20px">&nbsp;</td>
	      <td>
	      	<a href="javascript:document._sForm.submit();" class="imgButton"  ><span>查询</span></a>
	      </td>
	    </tr>
	  </table>
	</div>
</form>

<div class="titleDiv">
  <table width="100%" cellpadding="0" cellspacing="0" border="0" style="text-align:left;">
    <tr>
      <td class="box_top_left" width="2">&nbsp;</td>
      <td class="box_top_center">查询结果列表</td>
      <td class="box_top_right" width="2">&nbsp;</td>
    </tr>
  </table>
</div>

<div class="contentBox">
    <table class="osTable" cellpadding="0" cellspacing="0" border="0">
      <thead>
        <tr >
          <th width="4%">用户名</th>
          <th width="5%">真实姓名</th>
          <th width="6%">电话</th>
          <th width="6%">邮件</th>
          <th width="5%">扣除金额</th>
          <th width="5%">账户余额</th>
	      <th width="8%">时间</th>
	      <th width="6%">操作人</th>
	      <th width="20%">描述</th>
        </tr>
      </thead>
      <tbody>
        <%
           int i=0;
           for(i=0;i<rs.size();i++){
        	   Record r=rs.get(i);
        	   String operator=r.getString("OPERATORFULLNAME","")+"("+r.getString("OPERATORLOGINNAME","")+")";
          	   operator="()".equals(operator)?"":operator;
        %>
	 
	 <tr>
			<td><%=r.getString("LOGINNAME","") %>&nbsp;</td>
            <td><%=r.getString("FULLNAME","") %>&nbsp;</td>
            <td><%=r.getString("TELEPHONE","") %>&nbsp;</td>
            <td><%=r.getString("EMAIL","") %>&nbsp;</td>
            <td><%=r.getString("COST","") %>&nbsp;</td>
            <td><%=r.getString("REMAINPONINT","") %>&nbsp;</td>
            <td><%=r.getString("COSTTIME","") %>&nbsp;</td>
            <td><%=operator %>&nbsp;</td>
            <td>
            <%
            String ctype=r.getString("CTYPE","");
            if(ctype.equals("chargeBack")){  
            	
         	   out.println("用户被管理员扣费，扣除 "+r.getString("COST",""));
            }else if(ctype.equals("cms")){
         	   out.println("用户阅读文章《"+r.getString("TITLE")+"》，扣除："+r.getString("COST","")); 
            }else if(ctype.equals("kjcg")){
         	   out.println("用户阅读科技成果《"+r.getString("TITLE")+"》，扣除："+r.getString("COST","")); 
            }
            if(!"".equals(r.getString("MARK",""))){
         	   out.println("&nbsp;备注："+r.getString("MARK","")); 
            }
         
         %>
            
            &nbsp;
            
            </td>
         </tr>
         
	 <%} for(;i<10;i++){%>
	<tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	   <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	 </tr>
	 <%} %>
      </tbody>
    </table>
	<div class="navDiv">
    <div class="navLeftDiv">
    </div>
    
    <div class="navRightDiv">  
    	 <jsp:include flush="true" page="/common/paging.jsp"></jsp:include>
	</div>
</div>
</div>
</body> 
</html>